# 填写程序代码

def remove_chars_from_string_with_replace(main_string, chars_to_remove):
    for char in chars_to_remove:
        main_string = main_string.replace(char, '')
    return main_string


# 测试函数
main_str = "They are students."
chars_to_remove = "aeiou"
new_str = remove_chars_from_string_with_replace(main_str, chars_to_remove)
print(new_str)  # 输出: Thy r stdnts



